/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package polymorphism;

/**
 *
 * @author Iskandar Sarkawi
 */
public class Printer_v2 {

    /*This solves the problem in class Printer
     * where you have to create a special method
     * for each new animal type     
     */
    public void show(Animal an){
        System.out.println(an.getLegs());
    }

}
